package cn.csc.module.order.controller.app.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;


@ApiModel("小程序 - 加入购物车 Request VO")
@Data
@ToString(callSuper = true)
public class OrderItemReqVO {

    @ApiModelProperty(value = "店铺Id", required = true)
    @NotNull(message = "店铺Id不能为空")
    private BigInteger shopId;

    @ApiModelProperty(value = "产品Id", required = true)
    @NotNull(message = "产品Id不能为空")
    private BigInteger spuId;

    @ApiModelProperty(value = "skuId", required = true)
    @NotNull(message = "skuId不能为空")
    private BigInteger skuId;
    @ApiModelProperty(value = "用户id", required = true)
    private BigInteger userId;
    /**
     * 分类id
     */
    private String categoryId;
    /**
     * 购物车产品个数
     */
    private Integer count;
    /**
     * 产品名称
     */
    private String spuName;
    /**
     * sku名称
     */
    private String skuName;
    /**
     * 产品主图片路径
     */
    private String pic;
    /**
     * 产品价格
     */
    private BigDecimal price;
    /**
     * 商品总金额
     */
    private BigDecimal spuTotalAmount;

    @ApiModelProperty(value = "订单Id", required = true)
    private BigInteger orderId;

}
